<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
            <li class="active"><a href="{:url('user/clerk')}">店员管理</a></li>
            <!-- <li><a href="{:url('user/add')}">添加商品分类</a></li> -->
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('user/clerk')}">
            店员姓名:
            <input type="text" class="form-control" name="username" value="{:input('request.username/s','')}" placeholder="请输入用户昵称">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('user/clerk')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
                    <th width="50">ID</th>
                    <th>昵称</th>
                    <th>头像</th>
                    <th>姓名</th>
                    <th>余额</th>
                    <th>积分</th>
                    <th>手机号码</th>
                    <th>店铺</th>
                    <th>状态</th>
                    <th>添加时间</th>
                    <th>审核</th>
				</tr>
			</thead>
			<tbody>
                <foreach name="list" item="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.nickname}</td>
                        <td><img src="{$vo.img}" style="width:50px;height:50px;margin-left:5px;" alt=""></td>
                        <td>{$vo.username}</td>
                        <td>{$vo.balance}</td>
                        <td>{$vo.integral}</td>
                        <td>{$vo.phone}</td>
                        <td>{$vo.shopname}</td>
                        <if condition="$vo['status'] eq 1">
                            <td>未审核</td>
                        </if>
                        <if condition="$vo['status'] eq 2">
                            <td>审核通过</td>
                        </if>
                        <if condition="$vo['status'] eq 3">
                            <td>审核拒绝</td>
                        </if>
                        <td>{$vo.addtime}</td>
                        <if condition="$vo['status'] eq 1">
                        <td>
                            <a class="btn btn-xs btn-primary" href="{:url('user/clerkedit',array('id'=>$vo['clerk_id'],'status'=>2))}">通过</a>
                            <a class="btn btn-xs btn-danger" href="{:url('user/clerkedit',array('id'=>$vo['clerk_id'],'status'=>3))}">拒绝</a>
                        </td>
                        </if>
                        <if condition="$vo['status'] eq 2">
                        <td>
                            <a class="btn btn-xs btn-danger" href="{:url('user/clerkedit',array('id'=>$vo['clerk_id'],'status'=>3))}">拒绝</a>
                        </td>
                        </if>
                        <if condition="$vo['status'] eq 3">
                        <td>
                                <a class="btn btn-xs btn-primary" href="{:url('user/clerkedit',array('id'=>$vo['clerk_id'],'status'=>2))}">通过</a>
                        </td>
                        </if>
                    </tr>
                </foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>